<% include header %>
<h1 class="articleTitle"><%=title%></h1>
<div class="wp">
    <form action="/admin/news" method="post">
        <%if(data._id){%>
            <input type="hidden" name="_id" value="<%=data._id%>">
        <%}%>
        <input type="hidden" name="contents" value="">
        <div class="form-group">
            <label for="inputTitle">标题：</label>
            <input type="title" name="title" class="form-control" id="inputTitle" value="<%=data.title%>" placeholder="请输入标题">
        </div>

        <div class="form-group">
            <label for="contents">内容：</label>
            <div id="mdeditor" class="mdeditor"><textarea><%=data.contents %></textarea></div>
        </div>


        <div class="form-group">
            <label for="inputTitle">tags：</label>
            <input type="text" name="tags" class="form-control" value="<%=data.tags%>" placeholder="请输入标题">
        </div>


        <div class="form-group">
            <label for="inputTitle">来源：</label>
            <input type="title" name="reprint_source" class="form-control" value="<%=data.reprint_source%>" placeholder="请输入标题">
        </div>

        <input class="btn btn-default" type="submit" value="提交保存" />
    </form>
    
</div>
<% include footer %>